import { zlRequest } from "../index";

// 请求native支付码
export const getNativeCode = (data: any) => {
  return zlRequest.post({ url: `/wx/pay/nativePrepay?vipInfoId=${data.vipInfoId}`, showLoading: false });
};

// vip档位列表
export const getVipLeaveList = () => {
  return zlRequest.get({ url: "/vip/vipInfo/list", showLoading: false });
}

// 订单列表
export const getOrderList = () => {
  return zlRequest.get({ url: "/vip/vipOrder/list", showLoading: false });
}

// 查询订单支付状态
export const findOrderStatus = (id: string) => {
  return zlRequest.get({ url: `/wx/pay/payStatus?orderId=${id}`, showLoading: false })
}


// 获取vip升级信息
export const getVipInfo = () => {
  return zlRequest.get({ url: "/vip/vipOrder/vipUpgrade", showLoading: false })
}
